/**
 * 
 */
package net.frankish.moviebank2.front.model;

import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;

/**
 * @author frankish
 *
 */
public class MovieTableSortHandler implements TableCellRenderer{
	
	TableCellRenderer headerRenderer = null;
	public MovieTableSortHandler(TableCellRenderer headerRenderer) {
		this.headerRenderer = headerRenderer;
	}

	@Override
	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
		JLabel label = (JLabel)this.headerRenderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
		return label;
	}

	
}
